package cn.kgc.client;

import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@Component
@Slf4j
public class WmsWareSkuFeignClientImpl implements WmsWareSkuFeignClient {
    @Override
    public Result<Boolean> hasStock(Long skuId) {
        log.warn("获得是否还有库存信息失败，方法降级:{}",skuId);
        return Result.error(false,"http://mall-wms/wms/wareSku/hasStock",
                HttpStatus.INTERNAL_SERVER_ERROR.value(), "error");
    }

}
